﻿namespace _1_C_练习__008方法的重载
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //方法重载
            Calculator calculator = new Calculator();
            Console.WriteLine(calculator.Add(calculator.Add(1, 2, 3), 2));
            dynamic num = 1;
            num = "2";
        }
    }

    public class Calculator
    {
        public int Add()
        {
            return 0112;
        }

        public int Add(int a, int b)
        {
            return a + b;
        }

        public int Add(int a, int b, int c)
        {
            return a * b * c;
        }
    }
}
